package com.crom.android.lottebaseball.profile;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.crom.android.lottebaseball.R;

public class SplashDemoActivity extends Activity implements OnClickListener
{
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_profile);
		
		
		TextView btn1 = new TextView(this);	
	        btn1=(TextView)findViewById(R.id.imageButton1);
	        btn1.setOnClickListener(this);
	    	
	        TextView btn2 = new TextView(this);
	        btn2=(TextView)findViewById(R.id.imageButton2);
	    	btn2.setOnClickListener(this);
	    	
	    	TextView btn3 = new TextView(this);
	    	btn3=(TextView)findViewById(R.id.imageButton3);
	    	btn3.setOnClickListener(this);
	    	
	    	TextView btn4 = new TextView(this);
	    	btn4=(TextView)findViewById(R.id.imageButton4);
	    	btn4.setOnClickListener(this);
	    	
	    	TextView btn5 = new TextView(this);
	    	btn5=(TextView)findViewById(R.id.imageButton5);
	    	btn5.setOnClickListener(this);
	    	
        }
	

    public void onClick(View v) {
		// TODO Auto-generated method stub
    	Intent i = new Intent(this, Realtor.class);
    	
		switch(v.getId()){
		case R.id.imageButton1:
			i.putExtra("page", 1); 
			Toast.makeText(this, "양 옆으로 스크롤 하시면서 확인 가능합니다.", Toast.LENGTH_SHORT).show();
			startActivity(i);
			break;
		case R.id.imageButton2 :
			i.putExtra("page", 2);	
			//Toast.makeText(this, "Page 2 selected", Toast.LENGTH_SHORT).show();
			startActivity(i);
			break;
		case R.id.imageButton3:
			i.putExtra("page", 3);
			//Toast.makeText(this, "Page 3 selected", Toast.LENGTH_SHORT).show();
			startActivity(i);
			break;
		case R.id.imageButton4:
			i.putExtra("page", 4);
			//Toast.makeText(this, "Page 4 selected", Toast.LENGTH_SHORT).show();
			startActivity(i);
			break;
		case R.id.imageButton5:
			i.putExtra("page", 5);
			//Toast.makeText(this, "Page 5 selected", Toast.LENGTH_SHORT).show();
			startActivity(i);
			break;
		}
    	
	}	
	
	
}